package com.control.model;

import java.io.Serializable;

import android.view.View;

import com.control.utils.StringUtils;

public class Cooker implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int id;
	private String cookerCode;
	private String cookerName;
	private String cookerImgName;
	private String cookerImgUrl;
	private String overTime;
	private String powerLevel;
	private String cookerStatus;
	private String ip;
	private String controlStatus;
	private String workTime;
	private String stage;
	
	private int heating;
	private int keepWarm;
	private String instructions;
	private int port;
	private String workModel;
	private String cookerWarn;
	private String heatingModel;
	private String errorCode;
	private String powerSource;
	private String cookerConfigName;
	private View view;
	
	public View getView() {
		return view;
	}
	public void setView(View view) {
		this.view = view;
	}
	public String getCookerConfigName() {
		if(StringUtils.isEmpty(cookerConfigName)){
			return "";
		}
		return cookerConfigName;
	}
	public void setCookerConfigName(String cookerConfigName) {
		this.cookerConfigName = cookerConfigName;
	}
	public String getPowerSource() {
		return powerSource;
	}
	public void setPowerSource(String powerSource) {
		this.powerSource = powerSource;
	}
	public String getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	public String getHeatingModel() {
		return heatingModel;
	}
	public void setHeatingModel(String heatingModel) {
		this.heatingModel = heatingModel;
	}
	public String getStage() {
		return stage;
	}
	public void setStage(String stage) {
		this.stage = stage;
	}
	public String getWorkModel() {
		return workModel;
	}
	public void setWorkModel(String workModel) {
		this.workModel = workModel;
	}
	public String getCookerWarn() {
		return cookerWarn;
	}
	public void setCookerWarn(String cookerWarn) {
		this.cookerWarn = cookerWarn;
	}
	public int getPort() {
		return port;
	}
	public void setPort(int port) {
		this.port = port;
	}
	public String getInstructions() {
		return instructions;
	}
	public void setInstructions(String instructions) {
		this.instructions = instructions;
	}
	public String getControlStatus() {
		return controlStatus;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCookerCode() {
		return cookerCode;
	}
	public void setCookerCode(String cookerCode) {
		this.cookerCode = cookerCode;
	}
	public String getCookerName() {
		return cookerName;
	}
	public void setCookerName(String cookerName) {
		this.cookerName = cookerName;
	}
	public String getCookerImgName() {
		return cookerImgName;
	}
	public void setCookerImgName(String cookerImgName) {
		this.cookerImgName = cookerImgName;
	}
	public String getCookerImgUrl() {
		return cookerImgUrl;
	}
	public void setCookerImgUrl(String cookerImgUrl) {
		this.cookerImgUrl = cookerImgUrl;
	}
	public String getOverTime() {
		return overTime;
	}
	public void setOverTime(String overTime) {
		this.overTime = overTime;
	}
	public String getPowerLevel() {
		return powerLevel;
	}
	public void setPowerLevel(String powerLevel) {
		this.powerLevel = powerLevel;
	}
	public String getCookerStatus() {
		return cookerStatus;
	}
	public void setCookerStatus(String cookerStatus) {
		this.cookerStatus = cookerStatus;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getControlStatus1() {
		return controlStatus;
	}
	public void setControlStatus(String controlStatus) {
		this.controlStatus = controlStatus;
	}
	public String getWorkTime() {
		return workTime;
	}
	public void setWorkTime(String workTime) {
		this.workTime = workTime;
	}
	public int getHeating() {
		return heating;
	}
	public void setHeating(int heating) {
		this.heating = heating;
	}
	public int getKeepWarm() {
		return keepWarm;
	}
	public void setKeepWarm(int keepWarm) {
		this.keepWarm = keepWarm;
	}
	
}